\(\int x^{3+m} \cosh (a+b x) \, dx\) [81]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F(-2)]
   Maxima [A] (verification not implemented)
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 12, antiderivative size = 59 \[ \int x^{3+m} \cosh (a+b x) \, dx=-\frac {e^a x^m (-b x)^{-m} \Gamma (4+m,-b x)}{2 b^4}-\frac {e^{-a} x^m (b x)^{-m} \Gamma (4+m,b x)}{2 b^4} \]

[Out]

-1/2*exp(a)*x^m*GAMMA(4+m,-b*x)/b^4/((-b*x)^m)-1/2*x^m*GAMMA(4+m,b*x)/b^4/exp(a)/((b*x)^m)

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3388, 2212} \[ \int x^{3+m} \cosh (a+b x) \, dx=-\frac {e^a x^m (-b x)^{-m} \Gamma (m+4,-b x)}{2 b^4}-\frac {e^{-a} x^m (b x)^{-m} \Gamma (m+4,b x)}{2 b^4} \]

[In]

Int[x^(3 + m)*Cosh[a + b*x],x]

[Out]

-1/2*(E^a*x^m*Gamma[4 + m, -(b*x)])/(b^4*(-(b*x))^m) - (x^m*Gamma[4 + m, b*x])/(2*b^4*E^a*(b*x)^m)

Rule 2212

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[(-F^(g*(e - c*(f/d))))*((c
+ d*x)^FracPart[m]/(d*((-f)*g*(Log[F]/d))^(IntPart[m] + 1)*((-f)*g*Log[F]*((c + d*x)/d))^FracPart[m]))*Gamma[m
 + 1, ((-f)*g*(Log[F]/d))*(c + d*x)], x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 3388

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + Pi*(k_.) + (f_.)*(x_)], x_Symbol] :> Dist[I/2, Int[(c + d*x)^m/(E^(
I*k*Pi)*E^(I*(e + f*x))), x], x] - Dist[I/2, Int[(c + d*x)^m*E^(I*k*Pi)*E^(I*(e + f*x)), x], x] /; FreeQ[{c, d
, e, f, m}, x] && IntegerQ[2*k]

Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \int e^{-i (i a+i b x)} x^{3+m} \, dx+\frac {1}{2} \int e^{i (i a+i b x)} x^{3+m} \, dx \\ & = -\frac {e^a x^m (-b x)^{-m} \Gamma (4+m,-b x)}{2 b^4}-\frac {e^{-a} x^m (b x)^{-m} \Gamma (4+m,b x)}{2 b^4} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.92 \[ \int x^{3+m} \cosh (a+b x) \, dx=-\frac {e^a x^m (-b x)^{-m} \Gamma (4+m,-b x)+e^{-a} x^m (b x)^{-m} \Gamma (4+m,b x)}{2 b^4} \]

[In]

Integrate[x^(3 + m)*Cosh[a + b*x],x]

[Out]

-1/2*((E^a*x^m*Gamma[4 + m, -(b*x)])/(-(b*x))^m + (x^m*Gamma[4 + m, b*x])/(E^a*(b*x)^m))/b^4

Maple [C] (verified)

Result contains higher order function than in optimal. Order 5 vs. order 4.

Time = 0.09 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.24

method result size
meijerg \(\frac {x^{4+m} \operatorname {hypergeom}\left (\left [2+\frac {m}{2}\right ], \left [\frac {1}{2}, 3+\frac {m}{2}\right ], \frac {x^{2} b^{2}}{4}\right ) \cosh \left (a \right )}{4+m}+\frac {b \,x^{5+m} \operatorname {hypergeom}\left (\left [\frac {5}{2}+\frac {m}{2}\right ], \left [\frac {3}{2}, \frac {7}{2}+\frac {m}{2}\right ], \frac {x^{2} b^{2}}{4}\right ) \sinh \left (a \right )}{5+m}\) \(73\)

[In]

int(x^(3+m)*cosh(b*x+a),x,method=_RETURNVERBOSE)

[Out]

1/(4+m)*x^(4+m)*hypergeom([2+1/2*m],[1/2,3+1/2*m],1/4*x^2*b^2)*cosh(a)+b/(5+m)*x^(5+m)*hypergeom([5/2+1/2*m],[
3/2,7/2+1/2*m],1/4*x^2*b^2)*sinh(a)

Fricas [A] (verification not implemented)

none

Time = 0.08 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.46 \[ \int x^{3+m} \cosh (a+b x) \, dx=-\frac {\cosh \left ({\left (m + 3\right )} \log \left (b\right ) + a\right ) \Gamma \left (m + 4, b x\right ) - \cosh \left ({\left (m + 3\right )} \log \left (-b\right ) - a\right ) \Gamma \left (m + 4, -b x\right ) + \Gamma \left (m + 4, -b x\right ) \sinh \left ({\left (m + 3\right )} \log \left (-b\right ) - a\right ) - \Gamma \left (m + 4, b x\right ) \sinh \left ({\left (m + 3\right )} \log \left (b\right ) + a\right )}{2 \, b} \]

[In]

integrate(x^(3+m)*cosh(b*x+a),x, algorithm="fricas")

[Out]

-1/2*(cosh((m + 3)*log(b) + a)*gamma(m + 4, b*x) - cosh((m + 3)*log(-b) - a)*gamma(m + 4, -b*x) + gamma(m + 4,
 -b*x)*sinh((m + 3)*log(-b) - a) - gamma(m + 4, b*x)*sinh((m + 3)*log(b) + a))/b

Sympy [F(-2)]

Exception generated. \[ \int x^{3+m} \cosh (a+b x) \, dx=\text {Exception raised: TypeError} \]

[In]

integrate(x**(3+m)*cosh(b*x+a),x)

[Out]

Exception raised: TypeError >> cannot determine truth value of Relational

Maxima [A] (verification not implemented)

none

Time = 0.08 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.93 \[ \int x^{3+m} \cosh (a+b x) \, dx=-\frac {1}{2} \, \left (b x\right )^{-m - 4} x^{m + 4} e^{\left (-a\right )} \Gamma \left (m + 4, b x\right ) - \frac {1}{2} \, \left (-b x\right )^{-m - 4} x^{m + 4} e^{a} \Gamma \left (m + 4, -b x\right ) \]

[In]

integrate(x^(3+m)*cosh(b*x+a),x, algorithm="maxima")

[Out]

-1/2*(b*x)^(-m - 4)*x^(m + 4)*e^(-a)*gamma(m + 4, b*x) - 1/2*(-b*x)^(-m - 4)*x^(m + 4)*e^a*gamma(m + 4, -b*x)

Giac [F]

\[ \int x^{3+m} \cosh (a+b x) \, dx=\int { x^{m + 3} \cosh \left (b x + a\right ) \,d x } \]

[In]

integrate(x^(3+m)*cosh(b*x+a),x, algorithm="giac")

[Out]

integrate(x^(m + 3)*cosh(b*x + a), x)

Mupad [F(-1)]

Timed out. \[ \int x^{3+m} \cosh (a+b x) \, dx=\int x^{m+3}\,\mathrm {cosh}\left (a+b\,x\right ) \,d x \]

[In]

int(x^(m + 3)*cosh(a + b*x),x)

[Out]

int(x^(m + 3)*cosh(a + b*x), x)